home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / ex5-1.c < prev    next >
C/C++ Source or Header  |  1990-05-15  |  387b  |  19 lines

  1. // ex5-1.c -- Writing to the standard output stream
  2.  
  3. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/ex5-1.c,v 3.0 90/05/15 22:45:07 kgorlen Rel $
  4.  
  5. #include <iostream.h>
  6.  
  7. main()
  8. {
  9.     float x = 1.2;
  10.     int i = 3;
  11.     char* prog = "myprogram";
  12.  
  13.     cout << prog;
  14.     cout << ":";
  15.     cout << endl;
  16.  
  17.     cout << "at step " << i << ", x = " << x << endl;
  18. }
  19.